<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
# source: app/Protos/users.proto

namespace User;

use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>user.SetUserInfoRequest</code>.
 */
class SetUserInfoRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 user_id = 1;</code>.
     */
    protected $user_id = 0;

    /**
     * Generated from protobuf field <code>string user_name = 2;</code>.
     */
    protected $user_name = '';

    /**
     * Generated from protobuf field <code>string address = 3;</code>.
     */
    protected $address = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     *     @var int $user_id
     *     @var string $user_name
     *     @var string $address
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\App\Protos\Users::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 user_id = 1;</code>.
     * @return int
     */
    public function getUserId()
    {
        return $this->user_id;
    }

    /**
     * Generated from protobuf field <code>int32 user_id = 1;</code>.
     * @param int $var
     * @return $this
     */
    public function setUserId($var)
    {
        GPBUtil::checkInt32($var);
        $this->user_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string user_name = 2;</code>.
     * @return string
     */
    public function getUserName()
    {
        return $this->user_name;
    }

    /**
     * Generated from protobuf field <code>string user_name = 2;</code>.
     * @param string $var
     * @return $this
     */
    public function setUserName($var)
    {
        GPBUtil::checkString($var, true);
        $this->user_name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string address = 3;</code>.
     * @return string
     */
    public function getAddress()
    {
        return $this->address;
    }

    /**
     * Generated from protobuf field <code>string address = 3;</code>.
     * @param string $var
     * @return $this
     */
    public function setAddress($var)
    {
        GPBUtil::checkString($var, true);
        $this->address = $var;

        return $this;
    }
}
